package com.zhy.sping.controller;

import com.zhy.sping.service.intf.CourseService;
import com.zhy.sping.vo.R;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/course/")
@CrossOrigin
public class CourseController {
    @Autowired
    private CourseService service;

    @GetMapping("queryhost.do")
    public R queryHost(){
        return service.queryHost();
    }
}
